package com.xch.sort;

import cn.hutool.core.util.RandomUtil;

public class ArrayGenerate {

    public static Integer[] generateOrderArray(int n){

        Integer[] arr = new Integer[n];
        for(int i =0;i<n;i++)arr[i] = i;

        return arr;
    }


    public static Integer[] generateRandomArray(int n,int bound){

        Integer[] arr =new Integer[n];

        for(int i =0;i<n ;i++){
            arr[i]= RandomUtil.randomInt(bound);
        }

        return arr;
    }
}
